package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 司机管理
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_driver")
@ApiModel(value="Driver对象", description="司机管理")
public class Driver extends Model<Driver> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "司机标识")
    @TableId(value = "driverID", type = IdType.AUTO)
    private Integer driverID;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "年纪")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "性别 0=男,1=女,2=未知")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "状态 0= 正常 1= 停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "值班状态 0= 未值班 1=值班，2已出车")
    @TableField("on_duty_status")
    private Integer onDutyStatus;

    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;


    @Override
    protected Serializable pkVal() {
        return this.driverID;
    }

}
